from rest_framework import serializers
from .models import CourseTags,Course,Path,Path_Stage,Chapter,CourseType


class CourseTags_Ser(serializers.ModelSerializer):
    class Meta:
        fields = "__all__"
        model = CourseTags

# 课程类别
class CourseType_Ser(serializers.ModelSerializer):
    class Meta:
        fields = "__all__"
        model = CourseType

# 课程
class Course_Ser(serializers.ModelSerializer):
    class Meta:
        fields = "__all__"
        model = Course

class Chapter_Ser(serializers.ModelSerializer):

    class Meta:
        fields = "__all__"
        model = Chapter

#路径序列化器
class Path_Ser(serializers.ModelSerializer):

    class Meta:
        fields = "__all__"
        model = Path

#路径阶段序列化器
class Path_Stage_Ser(serializers.ModelSerializer):

    class Meta:
        fields = "__all__"
        model = Path_Stage



